Part Number Hot Search : 
2N2920 TZX27A H1116 30301 R6047 36C803NQ 50207 1N276
Product Description
Full Text Search
 

To Download STK88C4050 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  voice microcontroller 1 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 specification 1. features * operating voltage : 2.5v - 5.5v. * maximum cpu operating frequency : 4,194,304hz at 2.7v. * provide x ? tal or rc oscillator. both can run at high speed or slow speed(low power). rc oscillator can detect internal or external resister automatically. * i/o port. - 24 i/o pins. - 8 of 24 pins with wake up function. * five 12-bit timers. * four channels for voice or melody processing. * two dacs for voice or melody playing. also, internal programming for single dac playing. * one pair of pwm for voice or melody playing. * eight interrupt sources : nmi - can be watchdog timer interrupt irq0 - timer 0 interrupt irq1 - timer 1 interrupt irq2 - timer 2 interrupt irq3 - timer 3 interrupt irq4 - timer 4 interrupt irq5 - e xternal interrupt irq6 - base timer interrupt
voice microcontroller 2 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 2. pin name assignment ( total: 97 pads ) pin name i/o function description 1) p10~p17 i/o 8-bit i/o pins for port 1 with wake-up interrupt 2) p20~p27 i/o 8-bit i/o pins for port 2 3) p30~p37 i/o 8-bit i/o pins for port 3 4) dac1 o current output port 5) dac2 o current output port 6) pwm1 o voltage output port 7) pwm2 o voltage output port 8) vcocap i/o pll used. 9) rxosc i x ? tal or ring osc pad 10) xosc2 o x ? tal pad 11) resb i system rese t pin ; internal pull_high. 12) testb i test pin ; internal pull_high. 13) vdd i power 14) vdd(pwm) i power for pwm module 15) gnd1 i ground 16) gnd2 i ground 17) gnd(pwm) i ground for pwm module 18) romsel[1:0] i rom size selection. 19) romcsb o for external rom chip enable 20) romeb[3:0] o for external rom chip output enable 21) raddr[19:14] o for external rom address 22) xaddr[4:1] o for external rom address 23) addr[15:0] i/o external rom and cpu address 24) data[7:0] i data from external rom 25) irqa i low can derive to 7 irq vectors. 26) ice_mod i high can be ice mode used. 27) r/w i/o internal or external cpu r/w 28) cpudata[7:0] i/o internal or external cpu data 29) rdy6502 o internal cpu rdy 30) irql o internal cpu irq 31) nmil o internal cpu nmi 32) cresb o internal cpu resetb
voice microcontroller 3 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 33) cpuclk o internal cpu clock input. 34) pgmb i for programming eprom or flash_rom. 32) xr i x ? tal or ring osc selection. 3. address arrangement 1) ram ( max. 192 bytes ) 0000-00bf for data storage. 0100-01bf for stack and data area .. this area is overlapped with 0000-00bf. 2) rom romsel[1:0] to select rom size type: romsel[1:0]=11 -> max. can implement 32meg bits by 8meg x 4 romsel[1:0]=10 -> max. can implement 16meg bits by 4meg x 4 romsel[1:0]=01 -> max. can implement 8meg bits by 2meg x 4 romsel[1:0]=00 -> max. can implement 4meg bits by 1meg x 4 max. 32meg bits for program and speech data area. this area splits into 256 banks(000~255). there are 16k bytes for every bank. related address shows below: bank address cpu address rom address bank 0 00000000 8000-bfff 000000-003fff bank 1 00000001 8000-bfff 004000-007fff bank 2 00000010 8000-bfff 008000-00bfff ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? .. bank 254 11111110 8000-bfff 3f8000-3fbfff bank 255 11111111 8000-bfff 3fc000-3fffff ( bank 255 11111111 c000-ffff 3fc000-3fffff) if reset or irq or nmi or bank address=ff rom address will indicate to 3fc000-3fffff. ffff, fffe - irq vector. fffd, fffc - res vector. fffb, fffa - nmi vector for watchdog interrupt. 3) irq vector, if irq vector is optioned to 7 levels. irqa=0 -> irq vector =ffff ,fffe irqa=1 -> irq0 vector =ffe1 ,ffe0 (timer_0)
voice microcontroller 4 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 irq1 vector =ffe3 ,ffe2 (timer_1) irq2 vector =ffe5 ,ffe4 (timer_2) irq3 vector =ffe7 ,ffe6 (timer_3) irq4 vector =ffe9 ,ffe8 (timer_4) ir q5 vector =ffeb ,ffea (external) irq6 vector =ffed ,ffec (base timer) 4. register description (1) read and write 00c0 irq flag register. read & write. read function : bit 0 : = 1 timer 0 flag, irq 0. 1 : = 1 timer 1 flag, irq 1 2 : = 1 timer 2 flag, irq 2. 3 : = 1 timer 3 flag, irq 3. 4 : = 1 timer 4 flag, irq 4. 5 : = 1 external flag, irq5. 6 : = 1 base timer flag, irq6 7 : = 1 reserved. write function : bit 0 : = 0 clear timer 0 flag. 1 : = 0 clear timer 1 flag. 2 : = 0 clear timer 2 flag. 3 : = 0 cclear timer 3 flag. 4 : = 0 clear timer 4 flag. 5 : = 0 clear external flag. 6 : = 0 clear base timer flag. 7 : = 0 reserved.
voice microcontroller 5 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00c1 port 1 data. read & write. 00c2 port 1 external interrupt high to low transient indicating flag. read & write. (falling edge) read function: bit 0 : 1 indicate port_10 transient from high to low flag. bit 1 : 1 indicate port_11 transient from high to low flag. bit 2 : 1 indicate port_12 transient from high to low flag. bit 3 : 1 indicate port_13 transient from high to low flag. bit 4 : 1 indicate port_14 transient from high to low flag. bit 5 : 1 indicate port_15 transient from high to low flag. bit 6 : 1 indicate port_16 transient from high to low flag. bit 7 : 1 indicate port_17 transient from high to low flag. * these flags will be cleared by clear external interrupt flag. write function: bit 0 : 0 disable and clear port_10 transient high to low flag bit 1 : 0 disable and clear port_11 transient high to low flag bit 2 : 0 disable and clear port_12 transient high to low flag bit 3 : 0 disable and clear port_13 transient high to low flag bit 4 : 0 disable and clear port_14 transient high to low flag bit 5 : 0 disable and clear port_15 transient high to low flag bit 6 : 0 disable and clear port_16 transient high to low flag bit 7 : 0 disable and clear port_17 transient high to low flag * the default value for each bit is 0.
voice microcontroller 6 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00c3 port 1 external interrupt low to high transient indicating flag. read & write (ris ing edge) read function: bit 0 : 1 indicate port_10 transient from low to high flag. bit 1 : 1 indicate port_11 transient from low to high flag. bit 2 : 1 indicate port_12 transient from low to high flag. bit 3 : 1 indicate port_13 transient from low to high flag. bit 4 : 1 indicate port_14 transient from low to high flag. bit 5 : 1 indicate port_15 transient from low to high flag. bit 6 : 1 indicate port_16 transient from low to high flag. bit 7 : 1 indicate port_17 transient from low to high flag. * these flags will be cleared by clear external interrupt flag. write function: bit 0 : 0 disable and clear port_10 transient low to high flag bit 1 : 0 disable and clear port_11 transient low to high flag bit 2 : 0 disable and clear port_12 transient low to high flag bit 3 : 0 disable and clear port_13 transient low to high flag bit 4 : 0 disable and clear port_14 transient low to high flag bit 5 : 0 disable and clear port_15 transient low to high flag bit 6 : 0 disable and clear port_16 transient low to high flag bit 7 : 0 disable and clear port_17 transient low to high flag * the default value for each bit is 0. 00c4 port 2 data. read & write. 00c5 port 3 data. read & write.
voice microcontroller 7 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 (2) port definition 00d0 set port 1 bit function. write only. * an ' 1' in this register will set the corresponding pin of port 1 as an output pin. * the default value for each bit is 0. 00d1 set port 1 pull-up resistor. write only. * an '1' in this register will enable the pull-up resistor of the corresponding pin of port 1. but the pull-up resistor will be disabled if the pin is output low. * the default value for each bit is 0. 00d2 set port 1 pull-low resistor. write only. * an '1' in this register will enable the pull-low resistor of the corresponding pin of port 1. b ut the pull-low resistor will be disabled if the pin is output low. * the default value for each bit is 0. 00d3 set port 1 bitwise input type function. write only. bit 0 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 1 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 2 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 3 : = 0 set this pin as an inverter type input. = 1 set this pin as a dimmer type input. 4 : = 0 set this pin as an inverter type input. = 1 set this pin as a dimmer type input. 5 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 6 : = 0 set this pin as a schmitt type input. = 1 set this pin as an inverter type input. 7 : = 0 set this pin as a schmitt type input. = 1 set this pin as an inverter type input. * the default value for each bit is 0.
voice microcontroller 8 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00d4 port1 bitwise output type function selection. write only. bit [7:0] = 0 set this pin as a buffer type output buffer. 0 : = 1 carrying 37.4khz while data=1 1 : = 1 carrying 37.4khz while data=0 2 : = 1 carrying 37.4khz while data=1 3 : = 1 carrying 37.4khz while data=0 4 : = 1 carrying 37.4khz while data=1 5 : = 1 carrying 37.4khz while data=0 6 : = 1 carrying 37.4khz while data=1 7 : = 1 carrying 37.4khz while data=0 * the default value for each bit is 0. 00d5 set port 2 bit function. write only. * an '1' in this register will set the corresp onding pin of port 2 as an output pin. * the default value for each bit is 0. 00d6 set port 2 pull-up resistor. write only. * an '1' in this register will enable the pull-up resistor of the corresponding pin of port 2. but the pull-up resistor will be disabled if the pin is output low. * the default value for each bit is 0. 00d7 set port 2 pull-low resistor. write only. * an '1' in this register will enable the pull-low resistor of the corresponding pin of port 2. but the pull-low resistor will be disabled if the pin is output low. * the default value for each bit is 0. 00d8 set port 2 bitwise input type function. write only. bit 0 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 1 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 2 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 3 : = 0 set this pin as an inverter type input. = 1 set this pin as a dimmer type input.
voice microcontroller 9 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 4 : = 0 set this pin as an inverter type input. = 1 set this pin as a dimmer type input. 5 : = 0 set this pin as an inverter type input. = 1 set this pin as a schmitt type input. 6 : = 0 set this pin as a schmitt type input. = 1 set this pin as an inverter type input. 7 : = 0 set this pin as a schmitt type input. = 1 set this pin as an inverter type input. * the default value for each bit is 0. 00d9 port2 bitwise output type function selection. write only. bit [7:0] = 0 set this pin as a buffer type output buffer. 0 : = 1 carrying 37.4khz while data=1 1 : = 1 carrying 37.4khz while data=0 2 : = 1 carrying 37.4khz while data=1 3 : = 1 carrying 37.4khz while data=0 4 : = 1 carrying 37.4khz while data=1 5 : = 1 carrying 37.4khz whi le data=0 6 : = 1 carrying 37.4khz while data=1 7 : = 1 carrying 37.4khz while data=0 * the default value for each bit is 0. 00da set port 3 bit function. write only. * an '1' in this register will set the corresponding pin of port 3 as an output pin. * the default value for each bit is 0. 00db set port 3 pull-up resistor. write only. * an '1' in this register will enable the pull-up resistor of the corresponding pin of port 3. but the pull-up resistor will be disabled if the pin is output low. * the def ault value for each bit is 0. 00dc set port 3 pull-low resistor. write only. * an '1' in this register will enable the pull-low resistor of the corresponding pin of port 3. but the pull-low resistor will be disabled if the pin is output low. * the default value for each bit is 0.
voice microcontroller 10 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00dd clear watchdog timer. write only. watchdog timer is about (system_clk/4)/128/256. 00de irq selection. write only. bit 5: =0 : normal irq vector =1 : 7 level irq vectors. 6: =0 : timer0 int=irq =1 : timer0 int=nmi 7: =0 : base timer int=irq =1 : base timer int=nmi note : please note that do not assign two nmi sources at the same time, otherwise the nmi source can not be identified in software. 00df time base control. write only. bit 0: =0 : disa ble and reset base timer irq. =1 : enable base timer irq 2-1: if bit[3]=0 =00 : system_clock/1024( resetable) =01 : system_clock/4096( resetable) =10 : system_clock/16384( resetable) =11 : system_clock/65536( resetable) if bit[3]=1 =00 : 128hz ( resetable ) =01 : 32hz ( resetable ) =10 : 8hz ( resetable ) =11 : 2hz ( resetable ) 3: =0 : base timer clock = system_clock =1 : base timer clock=32768hz (3) control register 00e0 to enter standby mode. write only. 00e1 to enter sleep mode. write only. in sleep mode, the main system oscillator will be stopped. so, all function are stopped and only external interrupt can wake up this chip.
voice microcontroller 11 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00e2 00e3 bank select register. write only. * the default bank value is ff. 00e4 audio control register. write only. bit 0 : = 0 disable dac1 and dac2. = 1 enable dac1 and dac2. 1 : = 0 dac1 and dac2 is merged. = 1 dac1 and dac2 is separated. 2 : = 0 disable pwm. = 1 enable pwm 4- 3 : if bit[5]=0 = 00 1 .70ma(full) at 3v for each dac = 01 3.10ma(full) at 3v for each dac = 10 2.31ma(full) at 4.5v for each dac = 11 4.32ma(full) at 4.5v for each dac if bit[5]=1 = 00 1.42ma(full) at 3v for each dac = 01 2.66ma(full) at 3v for each dac = 10 1.93m a(full) at 4.5v for each dac = 11 3.67ma(full) at 4.5v for each dac 5 : = 0 current option 0 = 1 current option 1(less than option_0 15%) 6 : = 0 normal play function mode = 1 green voice mode play 7 : = 0 normal play function mode = 1 output data interpolation * the default value for each bit is 0. 00e5 play mode control. write only. bit 0 : = 0 channel_1 in voice mode. = 1 channel_1 in melody mode. timer 0 output to channel 1 and irq0 is disabled.
voice microcontroller 12 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 1 : = 0 channel_2 in voice mode. = 1 channel_2 in melody mode. timer 1 output to channel 1 and irq0 is disabled. 2 : = 0 channel_3 in voice mode. = 1 channel_3 in melody mode. timer 2 output to channel 1 and irq0 is disabled. 3 : = 0 channel_4 be voice mode. = 1 cha nnel_4 be melody mode. timer 3 output to channel 1 and irq0 is disabled. 4 : = 0 channel_(1,2) and (3,4) is not the same. = 1 channel_(1=2) latched by 1 and (3=4) latched by 3 5 : = 0 channel_(1,2,3) is not the same. = 1 channel_(1=2=3) l atched by 1 6 : = 0 channel_(1,3) is not the same. = 1 channel_1=3) latched by 1 7 : = 0 channel_(1,2,3,4) is not the same. = 1 channel_(1=2=3=4) latched by 1 * the melody output frequency is the timer irq freuency divided by 2. * the def ault value for each bit is 0. 00e6 data for channel_1. write only. 00e7 data for channel_2. write only. 00e8 data for channel_3. write only. 00e9 data for channel_4. write only. 00ea volume control for dac1. write only. bit 2- 0 : volume of dac1. * t he default value for each bit is 0. 00eb volume control for dac2. write only. bit 2- 0 : volume of dac2. * the default value for each bit is 0. 00ec volume control for pwm channel. write only. bit 2- 0 : volume of pwm channel. * the default value for each bit is 0.
voice microcontroller 13 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00ed system clock generator. write only. bit 0: system clock rc option x ? tal option =0 4meg: defined by bit 7 & 6 =1 32k 32k 2: =0 no speed up =1 speed up by pll by shorter timer constant in low pass filter. 3: =0 low gain for x ? tal. =1 high gain for x ? tal 4: =0 no speed up =1 speed up by [5] option 5: =0 for speed up pll for 5v mode(about 3.9v release). =1 for speed up pll for 3v mode(about 1.5v release) [7:6] : for x ? tal option only. =00 system clock=3 2768hz x 128(by pll) =01 system clock=32768hz x 192(by pll) =1x system clock=32768hz x 256(by pll) 00ee reset base timer. write only. 00ef reserved. do not use. (4) timer definition 00f0 timer control register. write only. bit 0 : = 0 disabl e timer 0. = 1 enable timer 0. 1 : = 0 disable timer 1. = 1 enable timer 1. 2 : = 0 disable timer 2. = 1 enable timer 2. 3 : = 0 disable timer 3. = 1 enable timer 3. 4 : = 0 disable timer 4. = 1 enable tim er 4. 5 : = 0
voice microcontroller 14 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 = 1 6 : = 0 enable watchdog timer. = 1 disable watchdog timer. 7 : = 0 watchdog to reset whole chip. = 1 watchdog to generate nmi. * the default value for each bit is 0. 00f1 timer 0 source clock control register. write only. bit 0000 : = 0000 clock source use ( system_clock). = 000 1 clock source use (system_clock /2 ). = 0010 clock source use (system_clock /4 ). = 00 11 clock source use (system_clock /8 ). = 0100 clock source use (system_clock /16 ). = 0101 clock source use (system_clock /32 ). = 0110 clock source use (system_clock 64 ). = 0111 clock source use (system_clock /128 ). = 1000 clock source use (system_clock /256 ). = 1001 clock source use (system_clock /512 ). = 1010 clock source use (system_clock /1024 ) ( resetable) . = 1011 clock source use (system_clock /8192 ) ( resetable) . = 1100 clock source use (system_clock /65536 ) ( resetable) . = 1101 clock source use (p15). = 1110 clock source use ( p16 ). = 11 11 clock source use ( p17 ). * the default value is 0010. 00f2 timer 1 source clock control register. write only. bit 0000 : = 0000 clock source use ( system_clock). = 000 1 clock source use (system_clock /2 ). = 0010 clock source use (system_clock /4 ). = 00 11 clock source use (system_clock /8 ). = 0100 clock source use (system_clock /16 ). = 0101 clock source use (system_clock /32 ). = 0110 clock source use (system_clock 64 ). = 0111 clock source use (system_clock /128 ). = 1000 clock source use (system_clock /256 ).
voice microcontroller 15 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 = 1001 clock source use (system_clock /512 ). = 1010 clock source use (system_clock /1024 ) ( resetable) . = 1011 clock source use (system_clock /8192 ) ( resetable) . = 1100 clock source use (system_clock /65536 ) ( resetable) . = 1101 clock source use (p15). = 1110 clock source use ( p16 ). = 11 11 clock source use ( p17 ). * the default value is 0010. 00f3 timer 2 source clock control register. write only. bit 0000 : = 0000 clock source use ( system_clock). = 000 1 clock source use (system_clock /2 ). = 0010 clock source use (system_clock /4 ). = 00 11 clock source use (system_clock /8 ). = 0100 clock source use (system_clock /16 ). = 0101 clock source use (system_clock /32 ). = 0110 clock source use (system_clock 64 ). = 0111 clock source use (system_clock /128 ). = 1000 clock source use (system_clock /256 ). = 1001 clock source use (system_clock /512 ). = 1010 clock source use (system_clock /1024 ) ( resetable) . = 1011 clock source use (system_clock /8192 ) ( resetable) . = 1100 clock source use (system_clock /65536 ) ( resetable) . = 1101 clock source use (p15). = 1110 clock source use ( p16 ). = 11 11 clock source use ( p17 ). * the default value is 0010. 00f4 timer 3 source clock control register. write only. bit 0000 : = 0000 clock source use ( system_clock). = 000 1 clock source use (system_clock /2 ). = 0010 clock source use (system_clock /4 ). = 00 11 clock source use (system_clock /8 ). = 0100 clock source use (system_clock /16 ). = 0101 clock source use (system_clock /32 ). = 0110 clock source use (system_clock 64 ).
voice microcontroller 16 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 = 0111 clock source use (system_clock /128 ). = 1000 clock source use (system_clock /256 ). = 1001 clock source use (system_clock /512 ). = 1010 clock source use (system_clock /1024 ) ( resetable) . = 1011 clock source use (system_clock /8192 ) ( resetable) . = 1100 clock source use (system_clock /65536 ) ( resetable) . = 1101 clock source use (p15). = 1110 clock source use ( p16 ). = 11 11 clock source use ( p17 ). * the default value is 0010. 00f5 timer 4 source clock control register. write only. bit 0000 : = 0000 clock source use ( system_clock). = 000 1 clock source use (system_clock /2 ). = 0010 clock source use (system_clock /4 ). = 00 11 clock source use (system_clock /8 ). = 0100 clock source use (system_clock /16 ). = 0101 clock source use (system_clock /32 ). = 0110 clock source use (system_clock 64 ). = 0111 clock source use (system_clock /128 ). = 1000 clock source use (system_clock /256 ). = 1001 clock source use (system_clock /512 ). = 1010 clock source use (system_clock /1024 ) ( resetable) . = 1011 clock source use (system_clock /8192 ) ( resetable) . = 1100 clock source use (system_clock /65536 ) ( resetable) . = 1101 clock source use (p15). = 1110 clock source use ( p16 ). = 11 11 clock source use ( p17 ). * the default value is 1001. 00f6 timer 0 data. write only. * after timer 0 been enabled, the timer will start to count down. when timer counts to 0, the timer will count from the initial value and irq0 will happen. * this timer data is used with $00f7. total is 12 bits * valid values($00f7,$00f6)/ are from 1 to 4095. 0 is prohibited.
voice microcontroller 17 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 * timer 1 input clock is ($00f1). * the time elapse = ($ 00f7 ,$00f6) / ($00f1) 00f7 timer 0 higher nibble data. write only. 00f8 timer 1 data. write only. * after timer 1 been enabled, the timer will start to count down. when timer counts to 1, the timer will count from the initial value and irq1 will happen. * this timer data is used with $00f9. total is 12 bits * valid values($00f9,$00f8)/ are from 1 to 4095. 0 is prohibited. * timer 1 input clock is ($00f2). * the time elapse = ($00f9 ,$00f8) / ($00f2) 00f9 timer 1 higher nibble data. write only. 00fa timer 2 data. write only. * after timer 2 been enabled, the timer will start to count down. when timer counts to 0, the timer will count from the initial value and irq2 will happen. * this timer data is used with $00fb. total is 12 bits * valid values($00fb,$00fa)/ are from 1 to 4095. 0 is prohibited. * timer 1 input clock is ($00f3). * the time elapse = ($00fb ,$00fa) / ($00f3) 00fb timer 2 higher nibble data. write only. 00fc timer 3 data. write only. * after timer 3 been enabled, the timer will start to coun t down. when timer counts to 0, the timer will count from the initial value and irq3 will happen. * this timer data is used with $00fd. total is 12 bits * valid values($00fd,$00fc)/ are from 1 to 4095. 0 is prohibited. * timer 1 input clock is ($00f4). * the time elapse = ($00fd ,$00fc) / ($00f4)
voice microcontroller 18 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 00fd timer 3 higher nibble data. write only. 00fe timer 4 data. read and write. read: if timer_4 is disabled, read low 8 bit counter data. write: * after timer 4 been enabled, the timer will start to count down. when timer counts to 0, the timer will count from the initial value and irq4 will happen. * this timer data is used with $00ff. total is 12 bits * valid values($00ff,$00fe)/ are from 1 to 4095. 0 is prohibited. * timer 1 input clock is ($00f5). * the time elapse = ($00ff ,$00fe) / ($00f5) 00ff timer 4 higher nibble data. read and write. read: if timer_4 is disabled, read high 4 bit counter data.
voice microcontroller 19 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 5. detalis (1) base timer clock source(sys_clk/1024, sys_clk/4096, sys_clk/16384, sys_clk/65536) and timer clock source(sys_clk/1024, sys_clk/8192) is resetable by ($00ee). (2) once external int flag is cleared. both falling and rising edge int flag are cleared. (3) (4) if int_0 or int_5 is optioned to nmi, we also can see these flags from ($ 00c0). (5) for system clock changing: 4mhz to 32khz or 32khz to 4mhz. after changed, needing 3 more clocks be pseudo clock. (6) if channel(1,2,3,4) be melody mode, int(0,1,2,3) will be tone generator. (7) timer data must write high nibble then low byte. if lo w byte first, the high nibble will be included after counting down to 0 then reload high nibble and low byte. (8) dac1 and dac2 volume control is separated, even in merged(dac1+dac2) mode.
voice microcontroller 20 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 (9) play mode control: this can implement voice or melody mode for each channel. more than this, for weighting concerned, this chip can defined to (1+1+1+1 ) ,(1+1+2),(2+2),(1+3) channels. channel_(1,2) derive to dac1; channel_(3,4) derive to dac2. channel_(1,2,3,4) derives to pwm port. a. (1+1+1+1) channel_1 can be melody or voice mode. channel_2 can be melody or voice mode. channel_3 can be melody or voice mode. channel_4 can be melody or voice mode. b. (1+1+2) channel_1=channel_3 can be melody or voice mode. ( channel data and tone generator is assigned by channel_1,both channels ? data and tone will be the same.) channel_2 can be melody or voice mode. channel_4 can be melody or voice mode. c. (1+3) channel_1=channel_2=channel_3 can be melody or voice mode. ( channel data and tone generator is assigned by channel_1,both channels ? data and tone will be the same.) channel_4 can be melody or voice mode. d. (2+2) channel_1=channel_2 can be melody or voice mode. channel_3=channel_4 can be melody or voice mode. ( channel data and tone generator is assigned by channel_1,both channels ? data and tone will be the same.) (10) ramp function implement a. dac note: for dac ? s dc offset is 00h(for 8 bit). if the voice or melody data play is start from 80h. we need make a ram_up data to inhibit noise ? pop ? .
voice microcontroller 21 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 and melody function is ramped up by 00h ~ 7fh. the others (80h~ ffh) for envelope generation.(ffh is maximum amplitude. 80h is minimum amplitude). b. pwm note: for pwm ? s dc offset is 80h(for 8 bit). if the voice or melody data play is start from 80h. we needn ? t make a ram_up data to inhibit noise ? pop ? . if melody function is ramped up by 00h ~ 7fh, a noise will be existed. the others (80h~ ffh) for envelope generation .(ffh is maximum amplitude. 80h is minimum amplitude). (11) 7 level irq: this chip we have 7 irqs. if we set to 7 level irq not only one irq, the hardware will take care the priority of these 7 interrupts. the priority is: int6 > int5 > int4 > int3 > int2 > int1 > int0 base_timer > external_int > timer_4 > timer_3 > timer_2 > timer_1 > timer_0
voice microcontroller 22 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 6. absolute maximum ratings operating temperature ........................................................................ 0 to 70 j storage temperature ...................................................................... -65 to 150 j supply voltage ............................................................................................... 7 v input voltage ........................................................................... -0.6 to vdd+0.6 v 7. electrical characteristic : parameter symbol condition min typ. max unit supply voltage vdd 2.5 3.0 3.5 v rc oscillation frequency ? sys vdd=2.7v 400 800 khz operating current idd vdd=3v, ? sys=4mhz 1.5 ma standby current istdby vdd=3v, ? sys=4mhz 1 ma sleep mode current islp vdd=3v 1 m a input high voltage vih vdd=3.0v 2.0 v input low voltage vil vdd=3.0v -0.6 0.8 v input high leakage current iih vih=vdd 1 m a input low leakage current iil vil=0 -5 m a output high voltage voh ioh=-2ma vdd- 0.4 vdd v output low voltage vol iol=4ma 0 0.4 v output high voltage (pwm1, pwm2) voh vdd=3v, ioh=-60ma vdd-1 vdd v output low voltage (pwm1, pwm2) vol vdd=3v, iol=75ma 0 1 v aud (d/a full scale) io vdd=3v, rl=100 ohm -4.0 ma
voice microcontroller 23 / 23 syntek semiconductor co., ltd. stk8 8 c 4050 customer information sheet 1. customer's name : ____________________ 2. project title : _________________________ 3. syntek part number : ___________________ (will be filled by syntek) 4. package --------- ( ) chip ( ) pqfp 5. others : customer : __________________ date : __/__/__ salesman : __________________ date : __/__/__


▲Up To Search▲   

 
Price & Availability of STK88C4050

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X